<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <script src="../vue_lib/vue.js"></script>
    <title>Title</title>
</head>
<body>
<div id="app">
    <p v-if="seen">你看不见我</p>
    <a v-bind:href="myhref">我的百度链接</a>
    <div @click="click1">
        <div @click.stop="click2">
            点击我
        </div>
    </div>
</div>
<script>
    var vm = new Vue({
        el:"#app",
        data:{
            seen:false,
            myhref:'http://www.baidu.com'
        },
        methods:{
            click1:function () {
               console.log('i am click1')
            },
            click2:function () {
               console.log('i am click2')
            }
        }
    })
</script>
</body>
</html>